<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/code.asp"-->
<!--#include file="inc/SqlIn.Asp"-->
<!--#include file="inc/md5.asp"-->
<%
user=request("user")
pass=MD5(trim(replace(request("pass"),"'","")))
online=request("online")

dim xianzai,daoqi

 if user<>"" and pass<>"" then
    set rs=server.createobject("adodb.recordset")
	sql="select * from userdate where user1='" & user & "'"
	rs.open sql,conn,1,1
	
	if rs("End_Time")<>"" then
	daoqi=rs("End_Time")
	xianzai=Now()
	end if
	
	if user<>rs("user1") then
	 rs.close
	 response.write "none"
	 response.end
	end if
	
	if pass<>rs("pwss1") then
	 rs.close
	 response.write "one"
     response.end
	end if
	
    if xianzai > daoqi then
	 rs.close
	 response.write "two"
     response.end
	end if
	
	if rs("Lock1")=true then
	 rs.close
	 response.write "three"
	 response.end
	end if
	rs("online1")="1"
	conn.execute sql
	rs.close
	response.write daoqi
 Else 
 response.write "none"
 response.end
 end if
%>